package com.cx.util;

/**
 * @author: Zhou wei
 * @create: 2020/5/22 14:46
 */
public class RequestResult {

    /**
     * 状态，1-成功，2-失败
     */
    private Integer code;
    /**
     * 状态描述信息
     */
    private String message;
    /**
     * 返回的对象
     */
    private Object result;

    public RequestResult(){

    }

    public RequestResult(Integer code, String message, Object result) {
        this.code = code;
        this.message = message;
        this.result = result;
    }

    public Integer getCode() {
        return code;
    }

    public void setCode(Integer code) {
        this.code = code;
    }

    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }

    public Object getResult() {
        return result;
    }

    public void setResult(Object result) {
        this.result = result;
    }

    @Override
    public String toString() {
        return "RequestResult{" +
                "code=" + code +
                ", message='" + message + '\'' +
                ", result=" + result +
                '}';
    }
}
